<!doctype html>
{% load static %}
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

    <!-- Loding font -->
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,700" rel="stylesheet">

    <link rel="stylesheet" href="../static/css/font-awesome/css/font-awesome.min.css">
    <!-- Custom Styles -->
    <link rel="stylesheet" type="text/css" href="{% static 'css/styles.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
    <title>视频动作识别系统</title>
  </head>
  <body background="../static/bgp.jpg">

    <!-- Backgrounds -->

    <!-- <div id="login-bg" class="container-fluid">

      <div class="bg-img"></div>
      <div class="bg-color"></div>
    </div> -->

    <!-- End Backgrounds -->

    <div class="row" id="login">
      <div class="col-lg-1"></div>  
      <div class="col-lg-5">
          <div class="login">
            <h2><b>动作识别系统</b></h2>
            <!-- Camera -->
            {% csrf_token %}
            <p>
                <button type="button" class="btn btn-primary btn-small" onclick="selectFile()"><i class="fa fa-folder-open-o" aria-hidden="true"></i>选择文件</button>
                <!-- <input id='file_upload' type='file' style='visibility:hidden'> -->
                <button type="button" class="btn btn-primary btn-small" onclick="openMedia()" id="open_btn"><i class="fa fa-video-camera">开摄像头</i></button>
                <button type="button" class="btn btn-primary btn-small" onclick="closeMedia()" disabled="disabled" id="close_btn"><i class="fa fa-times-circle" aria-hidden="true">关摄像头</i></button>
                <button type="button" class="btn btn-primary btn-small" id="recorderControl" onclick="recording()" disabled="disabled"><i class="fa fa-stop-circle-o" aria-hidden="true">开始录制</i></button>
                <button type="button" class="btn btn-primary btn-small" id="preview_button" onclick="" disabled="disabled"><i class="fa fa-play" aria-hidden="true">预览</i></button>
                <button type="button" class="btn btn-primary btn-small" id="upload_button" onclick="" disabled="disabled"><i class="fa fa-android" aria-hidden="true">判断</i></button>
            </p>
               <video id="video" class="bg"></video>
               <!-- <canvas id="qr-canvas"></canvas> -->
             <!-- End Camera -->
          <p id='result'></p>
          </div>2019-11 信息系统开发体验课 </a>
        </div>

        <!-- result col-->
        <div class="col-lg-5">
          <div class="login">
          <div id="result_title">
            <h2>识别结果</h2>
          </div>

          <div id="result_col">
            
          </div>
          </div>
        </div>
        <div class="col-lg-1"></div>
    </div>
  </body>
  <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  <script src="{% static 'js/VideoRecording.js' %}"></script>
</html>